{include file="Public:header" /}
<div class="ibox-title">
    <h5 style="line-height: 20px;font-weight: bold;">添加用户</h5>
    <a href="{:url('auth/user')}" class="btn btn-sm btn-info" style="margin-left: 10px;">返回上一页</a>
</div>
<div class="ibox-content">
    <div id="form" class="form-horizontal m-t">
        <div class="form-group">
            <label class="col-sm-3 control-label">用户名：</label>
            <div class="col-sm-6">
                <input id="username" name="username" type="text" class="form-control" placeholder="请输入用户名">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">密码：</label>
            <div class="col-sm-6">
                <input id="password" name="password" type="password" class="form-control" placeholder="请输入密码">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">用户组：</label>
            <div class="col-sm-6">
                {volist name="group_list" id="vo"}
                <label class="checkbox-inline i-checks">
                    <input type="checkbox" value="{$vo.id}" name="group_id[]"> <i></i>{$vo.title}
                </label>
                {/volist}
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">状态：</label>
            <div class="col-sm-6">
                <select class="form-control" name="status">
                    <option value="1">正常</option>
                    <option value="0">禁用</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-4 col-sm-offset-3">
                <button class="submit btn btn-primary">提交</button>
            </div>
        </div>
    </div>
</div>
{include file="Public:footer" /}
{include file="Public:formAjaxSubmit" /}
<script>
    formAjaxSubmit("{:url('Auth/userAdd')}");
</script>
